'use strict';
/*
 *@description: 版本目录对象
 *@author: wudandan
 *@date: 2020-09-09 15:09:28
*/
import YJTObject from 'yj-object';
class CatalogData extends YJTObject {
  constructor () {
    const Fields = {
      // 学段编码
      studyStageCode: '',
      // 学段名称
      studyStageName: '',
      // 年级编码
      gradeCode: '',
      // 年级名称
      gradeName: '',
      // 学期编码
      termCode: '',
      // 学期名称
      termName: '',
      // 学科编码
      subjectCode: '',
      // 学科名称
      subjectName: '',
      // 版本编码
      versionCode: '',
      // 版本名称
      versionName: '',
      // 教材ID
      bookId: '',
      // 教材名称
      bookName: '',
      // 选修必须编码
      bookOptionCode: '',
      // 选修必须名称
      bookOptionName: ''
    };
    super(Fields);
  }

  get studyStageCode () {
    return this._studyStageCode;
  }

  set studyStageCode (val) {
    this._studyStageCode = val;
  }

  get studyStageName () {
    return this._studyStageName;
  }

  set studyStageName (val) {
    this._studyStageName = val;
  }

  get gradeCode () {
    return this._gradeCode;
  }

  set gradeCode (val) {
    this._gradeCode = val;
  }

  get gradeName () {
    return this._gradeName;
  }

  set gradeName (val) {
    this._gradeName = val;
  }

  get termCode () {
    return this._termCode;
  }

  set termCode (val) {
    this._termCode = val;
  }

  get termName () {
    return this._termName;
  }

  set termName (val) {
    this._termName = val;
  }

  get subjectCode () {
    return this._subjectCode;
  }

  set subjectCode (val) {
    this._subjectCode = val;
  }

  get subjectName () {
    return this._subjectName;
  }

  set subjectName (val) {
    this._subjectName = val;
  }

  get versionCode () {
    return this._versionCode;
  }

  set versionCode (val) {
    this._versionCode = val;
  }

  get versionName () {
    return this._versionName;
  }

  set versionName (val) {
    this._versionName = val;
  }

  get bookId () {
    return this._bookId;
  }

  set bookId (val) {
    this._bookId = val;
  }

  get bookName () {
    return this._bookName;
  }

  set bookName (val) {
    this._bookName = val;
  }

  get bookOptionCode () {
    return this._bookOptionCode;
  }

  set bookOptionCode (val) {
    this._bookOptionCode = val;
  }

  get bookOptionName () {
    return this._bookOptionName;
  }

  set bookOptionName (val) {
    this._bookOptionName = val;
  }
}
export default class CatalogInfo extends YJTObject {
  constructor () {
    const Fields = {
      data: {
        type: Array,
        generics: CatalogData
      }
    };
    super(Fields);
  }

  get data () {
    return this._data;
  }

  set data (val) {
    this._data = val;
  }
}
